package com.woniuxy.lifeorder.api.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单项表
 * </p>
 *
 * @author 陈瑜洲，吴继明
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ORDERITEM")
@ApiModel(value="Orderitem对象", description="订单项表")
@KeySequence("OI_ORDERITEM")
public class Orderitem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单项号")
    @TableId(value = "ORDERITEM_ID",type = IdType.INPUT)
    private Integer orderitemId;

    @ApiModelProperty(value = "订单序号")
    @TableField("ORDERITEM_NUMBER")
    private String orderitemNumber;

    @ApiModelProperty(value = "服务编号")
    @TableField("GOODS_ID")
    private Integer goodsId;

    @ApiModelProperty(value = "商品对象")
    @TableField(exist = false)
    private BusinessGoods businessGoods;


    @ApiModelProperty(value = "订单号")
    @TableField("ORDER_ID")
    private Integer orderId;

    @ApiModelProperty(value = "数量")
    @TableField("GOODS_NUM")
    private Integer goodsNum;

    @ApiModelProperty(value = "单价")
    @TableField("UNIT_PRICE")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "总价")
    @TableField("TOTAL_PRICE")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "订单项插入日期")
    @TableField("CREAT_TIME")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;


}
